home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / vdtwn / tvf / asmhd6 / tw1hd6 / reverse.hd6 < prev    next >
Text File  |  1993-07-08  |  832b  |  70 lines

  1. ds_name        db    '\KOMEI\実物\tvf_prg\REVERSE',0
  2.  
  3.  
  4. paint_wd:
  5.      SET_P dt1
  6.      WD_LEFT
  7. re_paint:
  8. mouse_in:
  9.      ret
  10. be_called:
  11.  
  12. ;===== Reverse mode =====
  13.  
  14. #reverse:
  15.         CALL_P dt1     ;call    screen_side_clear
  16.  
  17.      push ebp
  18.      push ds
  19.      push es
  20.      mov ax,1ch
  21.      mov ds,ax
  22.      mov es,ax
  23.  
  24.  
  25.         align    4
  26. #rev:        mov    esi,20
  27.         mov    edi,40000h+20+400h*239
  28.         mov    eax,(360-12)*2/4
  29.         mov    ebx,400h-(360-12)*2
  30.         mov    ebp,400h+(360-12)*2
  31.         mov    dl,240/80
  32.         align    4
  33. #r_rep:
  34.         REPT    80
  35.         mov    ecx,eax
  36.         rep    movsd
  37.         add    esi,ebx
  38.         sub    edi,ebp
  39.         ENDM
  40.         dec    dl
  41.         jne    #r_rep
  42.         mov    ax,0901h
  43.         int    90h
  44.         xor    dh,0FFh
  45.         je    #rev
  46.  
  47.      pop es
  48.      pop ds
  49.      pop ebp
  50.      ret
  51.  
  52.  
  53.  
  54. look_me:
  55.      call sub_esi
  56.      dd      0,0
  57.      dw     1,0,80,42,20,30,15,1,0,0
  58.  
  59.  
  60. dt1:
  61.      call sub_edi
  62.      dw     ?
  63.      db 'S_S_CLS',0
  64. p_set:
  65.      M_P_SET
  66. p_call:
  67.      M_P_CALL
  68.  
  69.  
  70.